#include <jni.h>
#include <string>
#include "../third_party/mylib/include/mylib.h"

extern "C" JNIEXPORT jstring JNICALL
Java_com_example_nativelib_NativeLib_stringFromJNI(
        JNIEnv* env,
        jobject /* this */) {
    std::string hello = "Hello from C++, aar";
    return env->NewStringUTF(hello.c_str());
}

extern "C" JNIEXPORT jint JNICALL
Java_com_example_nativelib_NativeLib_addNumbers(
        JNIEnv* env,
        jobject /* this */,
        jint a,
        jint b) {
    return add(a, b);
}